<?php
/**
 * Created by PhpStorm.
 * User: lancer
 * Date: 2017/1/18
 * Time: 21:34
 */
header('Content-type:text/html;charset=utf-8');
echo '<table border="1">';
for($i=1;$i<10;++$i){
    echo '<tr>';
    for($j=1;$j<=$i;++$j){
        echo "<td> {$i} * {$j} = ".$i*$j."</td>";
        //计算并输出每层中的乘法
    }
    echo '</tr>';
}
echo '</table>';